package com.nt.train.controller;
import org.springframework.web.bind.annotation.*;

/**
 * @author hlf
 * @version 1.0
 * @date 2022/7/28 8:51
 */
@RestController
public class HelloController {

    @RequestMapping("/test")
    public String sayHello(){
        return "hello spring boot!!" ;
    }

    @RequestMapping(value = "/second", method = RequestMethod.GET)
    public String second(){
        return "hello spring boot!!" ;
    }

    @RequestMapping(value = "/third", method = RequestMethod.POST)
    public String third(){
        return "hello spring boot!!" ;
    }

    @GetMapping("/hello2")
    public String sayHello2(){
        return "hello spring boot!!" ;
    }

    @PostMapping("/hello3")
    public String sayHello3(){
        return "hello spring boot!!" ;
    }



}
